package com.kgc.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.kgc.api.user.UserInfoApi;
import com.kgc.service.IntegralSettlementService;

import org.springframework.stereotype.Service;

/**
 * Create on 2021/6/21
 * <p>
 * Author YANQINGCHAO
 * <p>
 * Description:
 */
@Service
public class IntegralSettlementServiceImpl implements IntegralSettlementService {

    @Reference(timeout = 30000)
    private UserInfoApi userInfoApi;

    @Override
    public Integer integralSettlement(Integer userId, Integer actualPayment) {
        return userInfoApi.integralSettlement(userId,actualPayment);
    }
}
